package guoanmaker.operator.business.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

import guoanmaker.operator.business.model.OperatorTrademarkSearchByUserLogs;

/**
 * 
* @ClassName: OperatorTrademarkSearchByUserLogsRepository 
* @Description: TODO(详情查询接口) 
* @author (ZhangXinYu)  
* @date 2017年12月18日 下午1:38:32 
* @version V1.0
 */
public interface OperatorTrademarkSearchByUserLogsRepository extends JpaRepository<OperatorTrademarkSearchByUserLogs, String>,JpaSpecificationExecutor<OperatorTrademarkSearchByUserLogs>{
	/**
	 * delete by userid
	 */
	@Transactional
	@Modifying
	public void deleteByUserid(String userid);
	/**
	 * find by userid regNo inCls
	 */
	@Transactional
	@Modifying
	public List<OperatorTrademarkSearchByUserLogs> findByUseridAndRegNoAndIntCls(@Param("userid")String userid, @Param("regNo")String regNo , @Param("intCls")Integer intCls);

}
